home *** CD-ROM | disk | FTP | other *** search
- SHORT
-
- Create makefiles automatically
-
- AUTHOR
-
- Dietmar Eilert (mail@dietmar-eilert.de)
- http://www.dietmar-eilert.de
-
- USAGE
-
- makemake is a command line tool which creates a makefile for a
- user-specified list of source codes (the makefile is dumped to the
- console window but can be redirected into a makefile via normal output
- redirection). This tool is designed to be used with the C/C++ mode of
- GoldED. If you want to use it manually, here is the syntax:
-
- makemake <option> <option> ... FILES=<source code> <source code> ...
-
- OPTIONS
-
- COMPILE/K command line for compile (*)
- LINK/K command line for compile and link (*)
- FILES/M file(s) to be checked
- IGNORE/K ignore pattern
- LOCAL/S Consider dependencies on local headers (#include "...")
- GLOBAL/S Consider dependencies on global headers (#include <...>)
- RECURSELOCAL/S Looks recursively into local headers
- RECURSEGLOBAL/S Looks recursively into global headers
- EXECUTABLE/K makefile is supposed to generate executable file
- OBJECTS/S makefile is supposed to generate objects
- TARGET/K makefile is supposed to link objects into this file
- PREFIX/K prefix for object files (to collect o-files in a subfolder)
- INCLUDE/K path to global headers
- SDK/K path to global headers (alternative path)
- CASESENSITIVE/S file system on this computer is case-sensitive
- NESTEDCOMMENTS/S permit nested comments in source codes and headers
- MARGIN/N recommended line width in makefile
- TABSIZE/N tab size associated with TAB character
- CONTINUE/S ignore fatal errors (missing files)
- VERBOSE/S indicate progress
-
- (*) suitable commands for the vbcc compiler will be used if not specified
-
- EXAMPLES
-
- makemake >makefile LOCAL EXECUTABLE="test" FILES "main.c"
-
- This command line creates a makefile for the vbcc compiler (built-in
- default) suitable for compiling the source code "main.c" into the
- executable "test". The makefile is designed to compile the source code
- directly into the executable without explicit creation of object files.
- Local includes (files directly included by "main.c") are considered as
- dependencies but other local or global headers are not taken into
- account. This command line can be modified as follows:
-
- - add the RECURSELOCAL option to consider dependencies on all local
- headers (makemake will follow all #include statements recursively). This
- is useful if you have a local header file which includes other local
- header files which include other local header files etc.
-
- - add the OBJECTS options to explicitely create (and keep) intermediate
- object files. If you use this option, you may want to combine it with
- PREFIX="o/" to collect the object files in the local "o/" folder. Keeping
- object files around reduces the time required for recompilation cycles.
-
- - you may want to use the INCLUDE option to indicate where the globals
- includes are located on your system.
-
- - if you use a compiler other than vbcc, you will have to define suitable
- compile and link commands. Note that makemake will append the target and
- the dependencies (in that order) after these commands. The built-in
- defaults are:
-
- COMPILE/K (to compile source code into object): "vc +vc.config -c -o"
- LINK/K (to link objects into executable): "vc +vc.config -o"
-